package com.example.demo.service;

import com.example.demo.entity.Userinfo;
import com.example.demo.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by IntelliJ IDEA.
 * User: zm
 * Date: 2023/5/17
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;
    public Userinfo getUserById(Integer id){
        return userMapper.getUserById(id);
    }
}
